package com.soft.order;

import com.soft.dao.TOrderDao;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@SpringBootTest
@RunWith(SpringRunner.class)
public class testOrder {
    @Autowired
    private TOrderDao tOrderDao;
    @Test
    public void testgetOrderAndOrderItem(){
        System.out.println(tOrderDao.getOrderAndOrderItem(null, 4));
        System.out.println(tOrderDao.getOrderAndOrderItem(4, null));
    }
    @Test
    public void testvagueFindAllOrders(){
        System.out.println(tOrderDao.vagueFindAllOrders(null));
//        System.out.println(tOrderDao.getOrderAndOrderItem(4, null));
    }
}
